-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[SQL] add support for backup storage redundancy param to create/restore/update db commands #15341
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
SQL |
| 'LRS': 'Local', | ||
| 'GRS': 'Geo', | ||
| 'ZRS': 'Zone' | ||
| }.get(self, 'Invalid') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you add support like https://github.com/Azure/azure-cli/pull/15208/files
| c.argument('storage_account_type', | ||
| arg_type=backup_storage_redundancy_param_type, | ||
| options_list=['--backup-storage-redundancy', '--bsr'], | ||
| help='Backup storage redundancy used to store backups') | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
avoid duplicate. use CLIArgumentType to abstract common argument type and reuse it for command
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
Description
Enabling customer to set Backup Storage Redundancy (StorageAccountType in REST API) via --backup-storage-redundancy parameter by adding parameter to the following cmds:
az sql db create
az sql db update
az sql db restore
az sql db copy
az sql db replica create
az sql db ltr-backup restore
Testing Guide
Test all of the above commands with additional --backup-storage-redundancy parameters
History Notes
[SQL] BREAKING CHANGE: az sql db create: Add --backup-storage-redundancy parameter; add warning for unspecified bsr/bsr == Geo.
Same for remaining cmds.
This checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.